<?php 
	session_start();
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
if(!isset($_SESSION["userid"]))
	echo "<script>alert('您无权访问');location='./index.php';</script>";
if($_SERVER['HTTP_REFERER'] == "")
	echo "<script>alert('本系统不允许从地址栏访问');window.close();</script>";
?>